# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement(object):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "i自由交通工具意外伤害保险"
    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["name"] = self.name
            data["company"] = "信美相互"
            data["days"] = item["days"]
            data["people_count"] = "1"
            data["airplane_death"] = item["airplane_death"]
            data["ship_death"] = item["ship_death"]
            data["train_death"] = item["train_death"]
            data["motor_death"] = item["motor_death"]
            data["subway_death"] = item["subway_death"]
            data["bus_death"] = item["bus_death"]
            data["taxi_death"] = item["taxi_death"]
            data["passenger_death"] = item["passenger_death"]
            data["travel_death"] = item["travel_death"]
            data["private_death"] = item["private_death"]
            data["service_death"] = item["service_death"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql,data )
